Redirect url and preserve new name

Redirect url and preserve new name

am 21.01.2010 16:59:40 von relicary

--00032555929a63070e047daecac9
Content-Type: text/plain; charset=ISO-8859-1

Hi!

I'm configuring the Apache Server. I have a server mounted with the next
url: http://VMS-GEN-000/

And a Wiki into with http://VMS-GEN-000/wiki/ url

I want that apache redirects to the wiki if the user types:
http://wiki.mydomain.com and preserve this
prefix while browser across the wiki. for example, if types:
http://wiki.mydomain.com and goes to the
Article 1, the URL will be http://wiki.mydomain.com
/
Article_1

I've used this one:

Code:

RewriteEngine on
RewriteCond %{HTTP_HOST} wiki.miempresa.es
RewriteRule ^(.*)$ http://VMS-GEN-000/wiki
[R=permanent,L]


Redirects fine, but when the user browse, the url
http://VMS-GEN-000/wikireturns appear.

What can I do? Regards

--00032555929a63070e047daecac9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi!



I'm configuring the Apache Server.
I have a server mounted with the next url: target=3D"_blank">http://VMS-GEN-000/



And a Wiki into with=A0 nk">http://VMS-GEN-000/wiki/ url


I want that apache redirects to the wiki if the user types:=A0 =3D"http://wiki.miempresa.com/" target=3D"_blank">http://wiki.mydomain.com<=
/a> and preserve this prefix while browser across the wiki. for example, if=
types:
http://wik=
i.mydomain.com
and goes to the Article 1, the URL will be tp://wiki.miempresa.com/" target=3D"_blank">http://wiki.mydomain.com/ iv id=3D":1dz" class=3D"ii gt">
Article_1




I've used this one:


Code:

ily: courier new,monospace;">RewriteEngine on
RewriteCond %{HTTP_HOST} <=
a href=3D"http://wiki.miempresa.es/" target=3D"_blank">wiki.miempresa.es >

RewriteRule ^(.*)$ ht=
tp://VMS-GEN-000/wiki
[R=3Dpermanent,L]


Redirects fine, but when the user browse, the url -gen-000/wiki" target=3D"_blank">http://VMS-GEN-000/wiki returns appear=
..



What can I do? Regards


--00032555929a63070e047daecac9--

Re: Redirect url and preserve new name

am 21.01.2010 17:20:50 von Eric Covener

2010/1/21 Juan Jes=FAs Cremades Monserrat :
> Hi!
>
> I'm configuring the Apache Server. I have a server mounted with the next
> url: http://VMS-GEN-000/
>
> And a Wiki into with=A0 http://VMS-GEN-000/wiki/ url
>
> I want that apache redirects to the wiki if the user types:
> http://wiki.mydomain.com and preserve this prefix while browser across th=
e
> wiki. for example, if types: http://wiki.mydomain.com and goes to the
> Article 1, the URL will be http://wiki.mydomain.com/
> Article_1
>
> I've used this one:
>
> Code:
>
> RewriteEngine on
> RewriteCond %{HTTP_HOST} wiki.miempresa.es
>
> RewriteRule ^(.*)$ http://VMS-GEN-000/wiki [R=3Dpermanent,L]

You just explicitly redirected to the hostname you don't want, why?

>
> Redirects fine, but when the user browse, the url http://VMS-GEN-000/wiki
> returns appear.


http://httpd.apache.org/docs/2.0/mod/core.html#usecanonicaln ame ?


--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Redirect url and preserve new name

am 21.01.2010 18:09:12 von Nilesh Govindrajan

On 01/21/2010 09:50 PM, Eric Covener wrote:
> 2010/1/21 Juan Jesús Cremades Monserrat:
>> Hi!
>>
>> I'm configuring the Apache Server. I have a server mounted with the next
>> url: http://VMS-GEN-000/
>>
>> And a Wiki into with http://VMS-GEN-000/wiki/ url
>>
>> I want that apache redirects to the wiki if the user types:
>> http://wiki.mydomain.com and preserve this prefix while browser across the
>> wiki. for example, if types: http://wiki.mydomain.com and goes to the
>> Article 1, the URL will be http://wiki.mydomain.com/
>> Article_1
>>
>> I've used this one:
>>
>> Code:
>>
>> RewriteEngine on
>> RewriteCond %{HTTP_HOST} wiki.miempresa.es
>>
>> RewriteRule ^(.*)$ http://VMS-GEN-000/wiki [R=permanent,L]
>
> You just explicitly redirected to the hostname you don't want, why?
>
>>
>> Redirects fine, but when the user browse, the url http://VMS-GEN-000/wiki
>> returns appear.
>
>
> http://httpd.apache.org/docs/2.0/mod/core.html#usecanonicaln ame ?
>
>

I give the same answer. You should use internal rewrite or proxypass.

BTW, what is next ? Hearing for the first time.

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org